package com.shoux.api.web.entity.apiData;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 企业主要管理人员
 * </p>
 *
 * @author xiaoZhi
 * @since 2022-03-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("personlist")
@ApiModel(value="PersonlistEntity对象", description="企业主要管理人员")
public class PersonlistEntity extends Model<PersonlistEntity> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "统一信用代码")
    private String creditcode;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "职务")
    private String position;

    @ApiModelProperty(value = "企业名称")
    @TableField("enterpriseName")
    private String enterprisename;

    @ApiModelProperty(value = "职务类别")
    @TableField("positionType")
    private String positiontype;

    @ApiModelProperty(value = "是否法人(1.是0.否)")
    @TableField("isFrName")
    private String isfrname;

    @ApiModelProperty(value = "人员总数量")
    @TableField("personAmount")
    private String personamount;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
